package cn.cttic.order.api.domain.bo;

import cn.cttic.order.api.domain.BaseSaleOrder;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 销售订单业务对象 base_sale_order
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseSaleOrder.class, reverseConvertGenerate = false)
public class BaseSaleOrderBo extends BaseEntity {

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lastName;

    /**
     * 名
     */
    @NotBlank(message = "名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String firstName;

    /**
     * 性别
     */
    @NotNull(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer gender;

    /**
     * 国家区号
     */
    @NotBlank(message = "国家区号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneArea;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carNo;

    /**
     * 产品套餐
     */
    @NotBlank(message = "产品套餐不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productId;

    /**
     * 销售人员
     */
    @NotBlank(message = "销售人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String salesManId;

    /**
     * 安装订单
     */
    @NotBlank(message = "安装订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private String installOrderId;

    /**
     * 订单状态
     */
    @NotNull(message = "订单状态 不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
